/*************************************************************************
	> File Name: test.c
	> Author: shubulan
	> Mail: gaoyulong1996@163.com
	> Created Time: Thu 15 Oct 2020 04:24:32 PM CST
 ************************************************************************/

#include <stdio.h>
#include <include/testFW.h>
int add(int a, int b) {
    return a + b;
}
TEST(func, add1) {
    EXPECT_EQ(add(3, 4), 7);
    EXPECT_NE(add(1, 2), 3);
    EXPECT_GE(add(10, 6), 10);
    EXPECT_GT(add(23, 10), 13);
}
TEST(func, add2) {
    EXPECT_LE(add(3, 4), 8);
    EXPECT_LT(add(5, 2), 5);
    EXPECT_EQ(add(3, 6), 9);
}
TEST(func, add3) {
    EXPECT_GE(add(6, 7), 13);
    EXPECT_EQ(add(5, 7), 12);
}
int main(int argc, char *argv[]) {
    return RUN_ALL_TESTS();
}
